import Vue from 'vue'
import Router from 'vue-router'
import login from '@/views/login'
import authorize from '@/views/authorize'
import authorizeQRcode from '@/views/authorizeQRcode'

Vue.use(Router)

export default new Router({
  // mode: 'history',
  routes: [
    {
      path: '/authorize',
      name: '授权',
      component: authorize
    },
    {
      path: '/authorizeQRcode',
      name: '授权二维码',
      component: authorizeQRcode
    },
    {
      path: '/login',
      name: '微信授权',
      component: login,
      meta: {
        notRequireAuth: true
      }
    }
  ]
})
